from entity import  User

user1 = User()
user1.show()
print(user1.count)


#print(User.count)


user2 = User()


User.show1()
User.show2()

user2.show1()
user2.show2()


from entity import User,Child,Person

# user1=User()
# user1.show()
# print(user1.count)

user2 = User("admin","18","male","111111@qq.com")
print(User.count) #私有属性无法直接访问
User.count = 100
print(user2.count)

user2.phone = "111111"

user3 = User("Root","18","male","222222@qq.cm")
user3.show()
#User.show()   #类名不可调用实列方法
print("______________________")
User.show1()
#User.show2()

user4=User()
user5=User("ry")
user6=User("ry","18")
user7=User("ry","18","male")
user8=User("ry","18","male","ry@ryqq.com")
user5.setname("ry9999")
print(user5.getname())
print("_____________11_________")
child1=Child()
child1.show()
child1.study()
print(child1.name)
print(child1.age)
print(child1.age)